package org.applet.game.app.rpg;

import java.awt.image.BufferedImage;
import java.io.IOException;

import org.applet.game.framework.map.MapLoader;
import org.applet.game.framework.map.Node;
import org.applet.game.framework.util.ImageLoader;

public class ResourceManager {

	
	public static BufferedImage loadMapImage(String name)
	{
		return ImageLoader.loadImage("image/map/"+name+"/0.png");
	}
	
	public static Node[][] loadMapSource(String name) throws IOException
	{
		return MapLoader.loadMapDescription("image/map/"+ name +".txt");
	}
}
